package com.topnav.mc.admin.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.topnav.mc.admin.entity.GbQuartzJob;
import com.topnav.mc.admin.entity.bean.GbQuartzJobBean;
import com.topnav.mc.admin.entity.param.GbQuartzJobParam;
import com.topnav.mc.base.mc.McMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GbQuartzMapper extends McMapper<GbQuartzJob, GbQuartzJobBean, GbQuartzJobParam> {
    String commSql = "SELECT * FROM mc_quartz_job ${ew.customSqlSegment}";

    @Select(commSql)
    GbQuartzJobBean selectInfoOne(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    @Select(commSql)
    List<GbQuartzJobBean> selectInfoList(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    @Select(commSql)
    Page<GbQuartzJobBean> selectInfoPage(Page<GbQuartzJobParam> page, @Param(Constants.WRAPPER) Wrapper queryWrapper);

}
